package com.bitin.adorn.modules.user.request;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.util.List;

/**
 * @author Mr.Lu
 * @since 2024/12/6 15:18
 */
@Data
public class UserChangeRequest {

    @NotBlank
    @Size(min=2, max=30)
    private String nickname;

    @NotNull
    @Min(value = 18, message = "只限于年满18岁使用")
    private Integer age;

    @NotEmpty(message = "角色不能为空")
    private List<String> roles;
}
